﻿<%@ Page Language="C#" MasterPageFile="~/mychau_admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="TuyenDung.aspx.cs" Inherits="mychau_admin_common_TuyenDung" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <h3>
            Quản lý chuyên mục tuyển dụng</h3>
    </div>
    <div>
        <div>
            <asp:Label ID="lblAddEOrEditE" runat="server"></asp:Label>
        </div>
        <div>
            <asp:Panel ID="pnlAddETuyenDung" runat="server">
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="lblTieuDeAddE" runat="server" Text="Tiêu đề"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTieuDeAddE" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblNoidungAddE" runat="server" Text="Nội dung"></asp:Label>
                        </td>
                        <td>
                            <CKEditor:CKEditorControl ID="ckeNoiDungAddE" runat="server"></CKEditor:CKEditorControl></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right">
                            <asp:Button ID="btnAddETuyenDung" runat="server" Text="Thêm" OnClick="btnAddETuyenDung_Click"/>
                            <asp:Button ID="btnCancelAddETuyenDung" runat="server" Text="Nhập lại"/>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlEditETuyenDung" runat="server">
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="lblTieuDeEditE" runat="server" Text="Tiêu đề"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTieuDeEditE" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblNoiDungEditE" runat="server" Text="Nội dung"></asp:Label>
                        </td>
                        <td>
                            <CKEditor:CKEditorControl ID="ckeNoiDungEditE" runat="server"></CKEditor:CKEditorControl></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right" style="height: 26px">
                            <asp:Button ID="btnEditETuyenDung" runat="server" Text="Sửa" OnClick="btnEditETuyenDung_Click" />
                            <asp:Button ID="btnCancelEditETuyenDung" runat="server" Text="Hủy" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
        <p style="color: Red;">
            <asp:Label ID="lblError" runat="server"></asp:Label>
        </p>
        <div>
            <asp:DataList ID="dtlTuyenDung" runat="server" DataKeyField="ID" OnDeleteCommand="dtlTuyenDung_DeleteCommand" OnEditCommand="dtlTuyenDung_EditCommand">
                <HeaderTemplate>
                    <table class="viewTable">
                        <tr>
                            <th>
                                Sửa
                            </th>
                            <th>
                                Xóa
                            </th>
                            <th>
                                Mã tuyển dụng
                            </th>
                            <th>
                                Tiêu đề
                            </th>
                            <th>
                                Nội dung
                            </th>
                            <th>
                                Ngày đăng
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit">
                                <asp:Image ID="imgEdit" runat="server" ImageUrl="~/images/Img_Admin/Edit.gif" /></asp:LinkButton>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="Delete" Style="position: relative"
                                OnClientClick="return confirm('Are you sure want delete this category?');">
                                <asp:Image ID="imgDelete" runat="server" ImageUrl="~/images/Img_Admin/delete.gif" /></asp:LinkButton>
                        </td>
                        <td>
                            <asp:Label ID="lblNewsID" Text='<%#Eval("ID") %>' runat="server"></asp:Label>
                        </td>
                        <td>
                            <%#Eval("tieuDe")%>
                        </td>
                        <td>
                            <%#Eval("noiDung") %>
                        </td>
                        <td>
                            <%#Eval("ngayDang") %>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:DataList>
        </div>
    </div>
</asp:Content>
